package org.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.dish_pojo.DishInfo;
import org.example.pojo.TableInfo;

import java.util.List;

@Mapper
public interface TableInfoDao extends BaseMapper<TableInfo> {
    List<DishInfo> selectByPage(@Param("offset") int offset, @Param("size") int size,
                                @Param("dishName") String dishName, @Param("categoryId") Integer categoryId);

    int countByCondition(@Param("dishName") String dishName, @Param("categoryId") Integer categoryId);

}
